import initState from '../states/filmState'
import methods from '../methods/filmMethod';
export default (state = initState, action) => {
    try {
        return methods[action.type](state,action.data)
    } catch (error) {
        return state;
    }
}